import { Component, Input, OnInit, ViewChild } from '@angular/core';
import { BillChangeShiftComponent } from '../../bill-change-shift/bill-change-shift.component';
import { TallyManageUnlockService } from '../../tally-manage-unlock.service';

@Component({
  selector: 'app-detail',
  templateUrl: './detail.component.html',
  styleUrls: ['./detail.component.less']
})
export class TallyManageUnlockBulkDetailComponent implements OnInit {
	@Input()
	tallyId: string;

	data: any;

	constructor(private service: TallyManageUnlockService) {
	}

	ngOnInit(): void {
		this.getTallyDetail();
	}

	getTallyDetail() {
		this.service.bulkTallyDetail({id: this.tallyId}).subscribe(res => {
			this.data = res;
		})
	}
}
